#ifndef TOTPCREATEWIDNOW_H
#define TOTPCREATEWIDNOW_H
#include <QDialog>
#include <QLineEdit>
#include <QComboBox>
#include <botan/symkey.h>

namespace data_display {
class TOTPConfigWindow : public QDialog {
	Q_OBJECT

public:
	TOTPConfigWindow(QWidget *parent = nullptr);

signals:
	void configSaved(const QString& label, const Botan::SymmetricKey& key, const QString& algorithm, int digits, int period);

private slots:
	void saveConfig();

private:
	QLineEdit *keyInput;
	QComboBox *algorithmCombo;
	QComboBox *digitsCombo;
	QLineEdit *periodInput;
	QLineEdit *nameInput;
};
}
#endif //TOTPCREATEWIDNOW_H
